﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using WMS.Seven.Models;
using WMS.Seven.ProductSaleDetils.Dto;

namespace WMS.Seven.ProductSaleDetils
{
    public interface IProductSaleDetilsAppService:IApplicationService
    {
        /// <summary>
        /// 商品信息
        /// </summary>
        /// <returns></returns>
        Task<string> SelectProduct();

        /// <summary>
        /// 添加商品销售信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<object> AddProductSaleis(ProductSalesDto input);


        /// <summary>
        /// 获取销售订单详情
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<List<PSDelitDto>> SelectFormProductSale(string SalesOrderCode, string ProductCode, string ProductName, int pageIndex, int pageSize);


        /// <summary>
        /// 删除销售订单
        /// </summary>
        /// <param name="SalesOrderCode"></param>
        /// <returns></returns>
        Task<int> DeleteProduSaleDetils(string SalesOrderCode);

        Task<Sales> FillSaleDetailsAsync(string SalesOrderCode);
        Task<string> GetProductIdsBySaleIdAsync(string ProductCode);
    }
}
